﻿using System;
using System.Drawing;
using System.Windows.Forms;
using System.Runtime.InteropServices;

using OpenTK;
using OpenTK.Graphics;
using OpenTK.Graphics.OpenGL;
using OpenTK.Audio;
using OpenTK.Audio.OpenAL;
using OpenTK.Input;

namespace BlockEngine
{
    class Program
    {
        [DllImport("user32.dll")]
        public static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
        [DllImport("user32.dll")]
        static extern bool ShowWindow(IntPtr hWnd, int nCmdShow);

        [STAThread]
        static void Main()
        {
            Console.Title = "BlockEngine";
            IntPtr hWnd = FindWindow(null, "BlockEngine");

            if (hWnd != IntPtr.Zero)
            {
                ShowWindow(hWnd, 0);
            }
            using (Network.Client game = new Network.Client())
            {
                game.Run(30, 60);
            }
        }
    }
}
